package main

import "fmt"

func main() {
	for i := 0; i < 5; i++ {
		for j := 0; j < 10; j++ {
			fmt.Println(j)
		}
		fmt.Println(i)
	}

	str := "Go is beatuiful language!"
	fmt.Printf("The length of str is :%d\n", len(str))
	for ix := 0; ix < len(str); ix++ {
		fmt.Printf("The %dth char is :%c\n", ix, str[ix])
	}
	str2 := "日本人"
	fmt.Printf("The length of str2 is :%d\n", len(str2))
	for ix := 0; ix < len(str2); ix++ {
		fmt.Printf("The %dth char is :%c\n", ix, str2[ix])
	}
	var j int = 0
	for i := 0; i < 15; i++ {
		j++
		fmt.Println(j)
	}
	var s1 string = "G"
	for i := 0; i < 25; i++ {
		fmt.Println(s1)
		s1 += "G"
	}
	for i := 0; i <= 10; i++ {
		fmt.Printf("$d %b\n", i, i)
	}
	for i := 1; i <= 100; i++ {
		if i%3 == 0 {
			fmt.Println("Fizz")
		} else if i%5 == 0 {
			fmt.Println("Buzz")
		} else if i%3 == 0 && i%5 == 0 {
			fmt.Println("FizzBuzz")
		} else {
			fmt.Println(i)
		}

	}

}
